const internal/sync.mutexLocked
16 uses
internal/sync (current package)
mutex.go#L26: mutexLocked = 1 << iota // mutex is locked
mutex.go#L63: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L78: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L85: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L104: if old&(mutexLocked|mutexStarving) == mutexLocked && runtime_canSpin(iter) {
mutex.go#L120: new |= mutexLocked
mutex.go#L122: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L129: if starving && old&mutexLocked != 0 {
mutex.go#L141: if old&(mutexLocked|mutexStarving) == 0 {
mutex.go#L157: if old&(mutexLocked|mutexWoken) != 0 || old>>mutexWaiterShift == 0 {
mutex.go#L160: delta := int32(mutexLocked - 1<<mutexWaiterShift)
mutex.go#L194: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L203: if (new+mutexLocked)&mutexLocked == 0 {
mutex.go#L215: if old>>mutexWaiterShift == 0 || old&(mutexLocked|mutexWoken|mutexStarving) != 0 {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)